﻿<UserControl x:Class="VirtualKeyboard.Controls.IPBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="22" d:DesignWidth="150" Height="72" Width="405">

    <UserControl.Resources>
        <Style TargetType="TextBox">
            <Setter Property="Width" Value="90"/>
            <Setter Property="MaxLength" Value="3"/>
            <Setter Property="TextAlignment" Value="Right"/>
            <Setter Property="InputScope" Value="Number"/>
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="Margin" Value="5,30,5,0"/>
        </Style>
    </UserControl.Resources>
    <StackPanel Orientation="Horizontal" Height="72" >
        <TextBox x:Name="TextOctet1"/>
        <TextBlock Text="." />
        <TextBox x:Name="TextOctet2"/>
        <TextBlock Text="." />
        <TextBox x:Name="TextOctet3"/>
        <TextBlock Text="." />
        <TextBox x:Name="TextOctet4"/>
    </StackPanel>
</UserControl>
